/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package projetointegrado;

import java.awt.Color;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.UIManager;
import javax.swing.UIManager.LookAndFeelInfo;
import javax.swing.UnsupportedLookAndFeelException;

/**
 *
 * @author Emerson
 */
public class ProjetoIntegrado {
    //public static JanelaJogo jj = new JanelaJogo();
    public static Player player;
    public static PainelLateralDireto pld;
    public static PainelInferior pi;
    public static MapaUtfprBlocos mb;
    public static PainelMaterias pm ;
    public static JanPrincipal janelaPrincipal;
    public static PainelEnsalamento pe;
    public static PainelGameOver pgo;
    public static PainelCasa pc;
    public static Sounds sound = new Sounds();
    public static Enemy inimigo = new Enemy();
    public static PainelMultiplayer pmulti;
    public static PainelVictory pv;
   
    //public static Servidor server;
    static private LookAndFeelInfo[] look = UIManager.getInstalledLookAndFeels();
    
    public static void main(String[] args) throws InterruptedException {
        try {
            UIManager.setLookAndFeel(look[1].getClassName());
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(ProjetoIntegrado.class.getName()).log(Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            Logger.getLogger(ProjetoIntegrado.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(ProjetoIntegrado.class.getName()).log(Level.SEVERE, null, ex);
        } catch (UnsupportedLookAndFeelException ex) {
            Logger.getLogger(ProjetoIntegrado.class.getName()).log(Level.SEVERE, null, ex);
        }
        sound.playIntroMidi();
        janelaPrincipal = new JanPrincipal(); 
        janelaPrincipal.setVisible(true); 
        janelaPrincipal.setBackground(Color.DARK_GRAY);
        //pgo = new PainelGameOver();
        //pm = new PainelMaterias();
       
       // janelaPrincipal.add(jj);
       // pm.setBounds(0,0,830,710);
       // pi.setBounds(0,597,830,83);
        //pe.setBounds(0,0,830,600);
        //pe.setVisible(false);
       // pc.setBounds(0,0,830,600);
        //pgo.setBounds(0,0,830,600);
//        pgo.setVisible(false);
      //  pc.setVisible(false);
        //pld.setBounds(832, 0, 185, 680);
       // mb.setBounds(0,0,830,600);   // FALTAVA SETBOUNDS DO MAPA... ¬¬
       // pi.setBackground(Color.DARK_GRAY);
      //  pld.setBackground(Color.black);
        //janelaPrincipal.add(pe);
       // janelaPrincipal.add(pc);
      //  janelaPrincipal.add(mb);
       // janelaPrincipal.add(pgo);
        //janelaPrincipal.add(pm);
       // janelaPrincipal.add(pld);
        //janelaPrincipal.add(pi);
        //pld.setVisible(false);
       // pi.setVisible(false);
       // jj.setVisible(false);
      //  mb.setVisible(false);
  //      pm.setVisible(false);
 
    }
 
    
}
